package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjProductImage;
import com.zb.entity.ZjSpareImage;
import com.zb.vo.GoodsImageVo;

import java.util.List;

/**
 * <p>
 * 备件图片表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-08-15
 */
public interface ZjSpareImageService extends IService<ZjSpareImage> {

    /**
     * 新增、修改、删除备件图片
     * @param custAccId 商家ID
     * @param spareId 备件ID
     * @param imageVos
     * @param delImageIds 删除的图片ID
     */
    void save(Long custAccId, Long spareId, List<GoodsImageVo> imageVos, List<Long> delImageIds);

    /**
     * 根据备件ID集合获取备件图片
     * @param spareIds 备件ID
     * @return
     */
    List<ZjSpareImage> getImageBySpareIds(List<Long> spareIds);

    /**
     * 根据备件ID获取备件图片
     * @param spareId 备件ID
     * @return
     */
    List<ZjSpareImage> getBySpareId(Long spareId);

    /**
     * 根据备件ID删除备件图片
     * @param spareIds
     */
    void deleteBatchBySpareIds(List<Long> spareIds);
}
